﻿using UnityEngine;

public class QTETestHelper : MonoBehaviour {

    public bool Run;
    public bool RunVideo;
    public QTEContent content;
    public QTEGame qTEGame;
    public GameObject Success;
    public GameObject Fail;
	
	void Update () {
        if (Run)
        {
            Run = false;
            qTEGame.StartGame(content, result);
        }

        if (RunVideo)
        {
            VideoQTEGameController.Instance.StartGame();
            RunVideo = false;
        }
	}

    private void result(bool result)
    {
        if (result)
            Success.SetActive(true);
        else
            Fail.SetActive(true);
    }
}
